Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon Justesen 74 posts 193 karma points
    Oct 31, 2014 @ 14:08
    Simon Justesen
    0

    [umb7.1.8] Can't crop images

    Hi guys, 

    I'm trying to get the image cropper to work with umbraco 7.1.8 .. I've replaced the Upload datatype on the "Image"-media type with the cropper and made a custom crop called 'frontpage'.

    I can display the image with GetCropUrl("cropperalias","frontpage") .. But it is not cropped, when it is displayed. I also expected to see a cropped version in the media folder on the file system, but I can only find the original image. The cropper should be saving generated crops to the file system, right?

    TIA,
    Simon

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Oct 31, 2014 @ 14:12
    Jan Skovgaard
    100

    Hi Simon

    Have you had a look at the documentation for the Image cropper? http://our.umbraco.org/documentation/Using-Umbraco/Backoffice-Overview/Property-Editors/Built-in-Property-Editors-v7/Image-Cropper

    What does your code for rendering the image look like? In the documentation above there should be plenty of examples on how to retrieve the cropped images etc.

    Hope this helps.

    /Jan

  • Jonas Boye 19 posts 131 karma points
    Oct 31, 2014 @ 14:21
    Jonas Boye
    0

    Did you upgrade Umbraco from 7.0.x  to 7.1.x?

    You might need to add a few lines in web.config

  • Simon Justesen 74 posts 193 karma points
    Oct 31, 2014 @ 14:22
    Simon Justesen
    0

    Jan: Yes I did (mis)read the documentation.. Too many parameters on GetCropUrl, as I was using UmbracoHelper.. 
    Should look like this @Umbraco.Media(heroImage).GetCropUrl("forside")
    Everything works now, thanks :D

     /Simon

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Oct 31, 2014 @ 14:25
    Jan Skovgaard
    0

    Hi Simon

    Glad to hear you godt it working :) Remember to mark the post as solved.

    Cheers, Jan

Please Sign in or register to post replies

Write your reply to:

Draft